import { createContext } from 'react';
import { EventEmitter } from 'events';
export const initialState = {
    tabList:[
        { label:'应用', key:'app' },
        { label:'服务', key:'service' },
        { label:'硬件', key:'hardware' }
    ],
    currentTab:'app',
    currentTag:'0',
    width:window.innerWidth
}
export const emitter = new EventEmitter();
export const GlobalContext = createContext();
